//
//  MyTransportOrderDetailMainModel.h
//  ReceiptDelivery
//
//  Created by 吕晶 on 2021/3/12.
//  Copyright © 2021 吕晶. All rights reserved.
//

#import <Foundation/Foundation.h>
@class MyTransportOrderDetailGoodModel;
@class MyTransportOrderDetailAllAddressModel;
@class MyTransportOrderDetailAddressModel;

NS_ASSUME_NONNULL_BEGIN

@interface MyTransportOrderDetailMainModel : NSObject

@property (nonatomic, assign) int wa_id;//运单id
@property (nonatomic, copy) NSString *wa_num;//运单编号
@property (nonatomic, assign) int c_id;//3PL维护客户id
@property (nonatomic, copy) NSString *tl_name;//物流商
@property (nonatomic, assign) int co_id;//合同id，为“0”时代表无合同
@property (nonatomic, copy) NSString *co_name;//合同名称
@property (nonatomic, copy) NSString *offer_price;//合同价格
@property (nonatomic, assign) int send_id;//发货地址id
@property (nonatomic, assign) int sa_id;//收货地址id
@property (nonatomic, copy) NSString *startTime;//提货开始时间
@property (nonatomic, copy) NSString *endTime;//提货结束时间
@property (nonatomic, copy) NSString *arrivalTime;//要求到达时间
@property (nonatomic, copy) NSString *goodsJnum;//总件量
@property (nonatomic, copy) NSString *goodsNum;//总数量
@property (nonatomic, copy) NSString *allWeight;//总重量
@property (nonatomic, copy) NSString *allVolume;//总体积
@property (nonatomic, copy) NSString *costWeight;//计费重量
@property (nonatomic, copy) NSString *costVolume;//计费体积
@property (nonatomic, copy) NSString *isTurn;//是否需要上缴回单
@property (nonatomic, copy) NSString *delivery;//服务方式
@property (nonatomic, copy) NSString *transport;//运输方式
@property (nonatomic, copy) NSString *settleSty;//结算方式
@property (nonatomic, copy) NSString *needCar;//车辆要求
@property (nonatomic, copy) NSString *carLength;//车长
@property (nonatomic, copy) NSString *pOrder;//下单方式
@property (nonatomic, copy) NSString *orderTime;//下单时间
@property (nonatomic, copy) NSString *ynum;//原始单号
@property (nonatomic, copy) NSString *aorder;//关联订单
@property (nonatomic, copy) NSString *price;//保险声明价格
@property (nonatomic, copy) NSString *fileInfo;//随附文件
@property (nonatomic, copy) NSString *remarks;//运输注意事项
@property (nonatomic, copy) NSString *note;//备注
@property (nonatomic, copy) NSString *trans_scope;//运输范围
@property (nonatomic, copy) NSString *trans_style;//运输类型-交通
@property (nonatomic, copy) NSString *trans_type;//运输类型-货物
@property (nonatomic, assign) int status;//状态 1 受理(新建) 2 确认 3 驳回 4 分配 5 交货出发 6 交货到达 7 干线出发 8 干线途中 9 干线到达 10 派送出发 11 派送到达 12 签收 13 回单确认 14 回单上缴 15 完成 16 作废 <<2,4-受理 5,7,8,10-出发 6,9,11-到达 12,13,14-签收 >>
@property (nonatomic, copy) NSString *status_name;//状态名称
@property (nonatomic, copy) NSString *rejectTime;//驳回时间
@property (nonatomic, copy) NSString *reject_remarks;//驳回原因
@property (nonatomic, copy) NSString *cancelTime;//作废时间
@property (nonatomic, copy) NSString *invalid_reason;//作废原因
@property (nonatomic, copy) NSString *goods_trans_type;//货物运输类型

@property (nonatomic, strong) NSMutableArray <MyTransportOrderDetailGoodModel *>*goods;
@property (nonatomic, strong) MyTransportOrderDetailAllAddressModel *address;

@end

@interface MyTransportOrderDetailGoodModel : NSObject

@property (nonatomic, copy) NSString *g_id;//货物ID
@property (nonatomic, copy) NSString *pro_num;//货物编号
@property (nonatomic, copy) NSString *name;//货物名称
@property (nonatomic, copy) NSString *good_type;//货物类型
@property (nonatomic, copy) NSString *pack_type;//包装
@property (nonatomic, copy) NSString *accept_num;//收容数
@property (nonatomic, copy) NSString *weight;//重量
@property (nonatomic, copy) NSString *volume;//体积
@property (nonatomic, copy) NSString *one_weight;//单个重量
@property (nonatomic, copy) NSString *one_volume;//单件体积
@property (nonatomic, assign) int num;//货物数量
@property (nonatomic, assign) int pnum;//货物件数
@property (nonatomic, copy) NSString *batch_num;//生产批次号
@property (nonatomic, copy) NSString *goods_describe;//货物描述
@property (nonatomic, assign) int count_model;//重量计算方式 1件数计算 2数量方式
@property (nonatomic, assign) int trans_type_id;//运输类型id
@property (nonatomic, copy) NSString *trans_type;//运输类型

@property (nonatomic, assign) BOOL isSelected;

@end

@interface MyTransportOrderDetailAllAddressModel : NSObject

@property (nonatomic, strong) MyTransportOrderDetailAddressModel *send;
@property (nonatomic, strong) MyTransportOrderDetailAddressModel *receive;

@end

@interface MyTransportOrderDetailAddressModel : NSObject

@property (nonatomic, assign) int send_id;//发货地址ID
@property (nonatomic, copy) NSString *send_name;//发货单位名称
@property (nonatomic, assign) int receive_id;//收货地址ID
@property (nonatomic, copy) NSString *receive_name;//收货单位名称
@property (nonatomic, copy) NSString *tel_name;//联系人
@property (nonatomic, copy) NSString *phone;//联系电话

@property (nonatomic, copy) NSString *province;//省
@property (nonatomic, copy) NSString *city;//市
@property (nonatomic, copy) NSString *town;//区
@property (nonatomic, copy) NSString *province_id;//省
@property (nonatomic, copy) NSString *city_id;//市
@property (nonatomic, copy) NSString *town_id;//区
@property (nonatomic, copy) NSString *info;//详细地址
@property (nonatomic, copy) NSString *lng;//经度
@property (nonatomic, copy) NSString *lat;//纬度


@end

NS_ASSUME_NONNULL_END
